#include <memory>
#include <vector>
#include <string>
#include <iostream>
using namespace std;
int main()
{
    double b = 10;
    vector<double> a = {12, 3, 1};
    unique_ptr<double> p1(new double(b));
    unique_ptr<vector<double>> p2(new vector<double>(a));
    cout << (*p1) << endl;
    cout << (*p2)[1] << endl;
}